from flask import Flask, escape
app = Flask(__name__)

# 重定向
# https://flask.net.cn/quickstart.html#url

# http://127.0.0.1:5000
@app.route('/')
def index():
    return 'Index Page'

# 下面两个重定向的区别在于尾部的斜杠 /

# http://127.0.0.1:5000/projects
# http://127.0.0.1:5000/projects/
@app.route('/projects/')
def projects():
    return 'The project page'

# http://127.0.0.1:5000/about
@app.route('/about')
def about():
    return 'The about page'